package dominio.xml.productsByCategories;

import java.util.LinkedList;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement(name="listOfProducts")
@XmlAccessorType(XmlAccessType.FIELD)
public class XMLList {
	
	@XmlElement (name="categories")
	private LinkedList<XMLCategories> categories;
	
	public XMLList(){
		categories = new LinkedList<XMLCategories>();
	}
	
	public XMLList(LinkedList<XMLCategories> categories){
		this.categories = categories;
	}

	public LinkedList<XMLCategories> getCategories() {
		return categories;
	}

	public void setCategories(LinkedList<XMLCategories> categories) {
		this.categories = categories;
	}
	
	public void addCategorie(XMLCategories categorie){
		categories.add(categorie);
	}
	
	

}
